<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>with</title>
</head>

<body>
  <div>
    <form action="" method="post">
      <input type="text">
      <address></address>
      <title></title>
    </form>
    <form action=""></form>
  </div>

  <script>
    console.log(document.forms[0].method);
    let a = document.forms[0]
    with (a) {
      // action.value = 'a'
      name = 'w';
      // address = 'wwn';
      // title.value = 'wct'

    }
    console.log(a);
  </script>
</body>

</html>